package xzy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
@Component("studentMes")
@NoArgsConstructor
@AllArgsConstructor
@Data
public class StudentMes {
    private int stuId;
    private String stuNo;
    private String stuName;
    private String sex;
    private Date birthday;
    private int gradeId;
    private String email;
    private String tel;
    private String stuAddress;
    private String stuGradute;
    private String stuDesc;

    public StudentMes(String stuNo, String stuName, String sex, Date birthday, int gradeId, String email, String stuDesc) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.sex = sex;
        this.birthday = birthday;
        this.gradeId = gradeId;
        this.email = email;
        this.stuDesc = stuDesc;
    }

    public StudentMes(int stuId, String stuNo, String stuName, String sex, Date birthday, int gradeId, String email, String stuDesc) {
        this.stuId=stuId;
        this.stuName = stuName;
        this.sex = sex;
        this.birthday = birthday;
        this.gradeId = gradeId;
        this.email = email;
        this.stuDesc = stuDesc;
    }

    public StudentMes(String stuNo, String stuName, String sex, Date birthday, int gradeId, String email, String tel, String stuAddress, String stuGradute, String stuDesc) {
        this.stuNo=stuNo;
        this.stuName = stuName;
        this.sex = sex;
        this.birthday = birthday;
        this.gradeId = gradeId;
        this.email = email;
        this.tel=tel;
        this.stuAddress=stuAddress;
        this.stuGradute=stuGradute;
        this.stuDesc = stuDesc;
    }
}
